package com.ioc.common.enums.error;

/**
 * 业务异常编码表
 *
 * @author ONEC
 */
public enum BusinessErrorEnum {

    /**
     * 系统异常
     */
    SYSTEM_BUSINESS("处理成功", 1000),
    /**
     * 系统异常
     */
    BUSINESS_AGENT_NOT_EXIST("机构暂未开通该业务", 4002),
    /**
     * 系统异常
     */
    BUSINESS_AGENT_NOT_AVAILABLE("机构业务已关闭", 4004),
    /**
     * 系统异常
     */
    BUSINESS_NOT_EXIST("业务编号不存在", 4001),
    /**
     * 系统异常
     */
    BUSINESS_NOT_AVAILABLE("当前业务已关闭", 4003),

    BUSINESS_TRADE_NUM_NOT_EXIST("交易订单号不存在", 4005),


    BUSINESS_MERCHANT_NOT_EXIST("商户暂未开通该业务", 4006),

    BUSINESS_MERCHANT_AVAILABLE("商户业务已关闭", 4007),

    ;

    private String msg;

    private Integer index;

    BusinessErrorEnum(String msg, Integer index) {
        this.msg = msg;
        this.index = index;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }
}
